package com.linko.intelligent.remote.core.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.linko.intelligent.remote.pojo.po.IotStatus;
import com.linko.intelligent.remote.pojo.query.IotQuery;
import com.linko.intelligent.remote.pojo.vo.SpeedReportVo;
import com.linko.intelligent.remote.pojo.vo.StopReportVo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author yuan
 * @create 2024/4/15 17:39
 */
@Mapper
@Repository
public interface IotStatusMapper extends BaseMapper<IotStatus> {
    List<IotStatus> selectLast();

    List<StopReportVo> countStop(IotQuery query);

    List<SpeedReportVo> countSpeed(IotQuery query);
}
